package com.icebartech.base.modules.user.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;

import com.icebartech.core.dto.BaseDTO;
import lombok.Data;

/**
 * 权限
 * @author wenhsh
 *
 */
@Data
@ApiModel(description = "管理后台权限信息")
public class AppPermissionInfoDTO extends BaseDTO {
	
	private static final long serialVersionUID = -8801391477694985837L;

	/**
	 * 主键id
	 */
	@ApiModelProperty(value = "主键id")
	private Long id;
	
	/**
	 * 权限名称
	 */
	@ApiModelProperty(value = "主键id")
	private String permissionName;
	
	/**
	 * 资源id
	 */
	@ApiModelProperty(value = "主键id")
	private String resourceId;
	
	/**
	 * 权限类型
	 */
	@ApiModelProperty(value = "权限类型")
	private String permissionType;
	
	/**
	 * 父级id
	 */
	@ApiModelProperty(value = "父级id")
	private Long parentId;
	
	/**
	 * 菜单url
	 */
	@ApiModelProperty(value = "菜单url")
	private String menuUrl;

	/**
	 * 菜单名称
	 */
	@ApiModelProperty(value = "菜单名称")
    private String menuName;

    /**
     * 第几级菜单
     */
	@ApiModelProperty(value = "第几级菜单")
    private Byte menuLevel;
    
    /**
     * 子级权限项
     */
	@ApiModelProperty(value = "子级权限项")
    private List<AppPermissionInfoDTO> childPermissions;
    
}